<?php
/**
 * Created by PhpStorm.
 * User: 氓羽
 * Date: 2018-4-20
 * Time: 15:40
 */
function C($name, $method){
    require_once ('./libs/Controller/'.$name.'Controller.class.php');

    $controller = $name.'Controller';
    $obj = new $controller();
    $obj->$method();

}

function M($name){
    require_once ('./libs/Model/'.$name.'Model.class.php');

    $model = $name.'Model';
    $obj = new $model;
    return $obj;
}

function V($name){
    require_once ('./libs/View/'.$name.'View.class.php');

    $view = $name.'View';
    $obj = new $view;
    return $obj;
}


/*//将特殊符号和非法字符串进行转义
function daddslashes($str){
    return (!get_magic_quotes_gpc())?addcslashes($str) : $str;
}*/
